package com.zuoye.day14;

import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;

public class CopyFileBuffere {
    public static void main(String[] args) {
        File oldFile = new File("d://test1/hello.txt");

        File newFile = new File("d://test2/hello2.txt");
        File fileParent = newFile.getParentFile();

        if (!fileParent.exists()){
            fileParent.mkdirs();
        }
        if (!newFile.exists()){
            try {
                newFile.createNewFile();
            } catch (IOException e) {
                e.printStackTrace();
            }

           // BufferedWriter bw = new BufferedWriter();
        }
    }
}
